package com.irdstudio.apicenter.console.service.template;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.frame.maker.dm.SPageParamTrade;
import com.irdstudio.apicenter.frame.maker.dm.SPageParamTradeDao;

@Service(value = "sPageParamTradeService")
public class SPageParamTradeService {
	@Autowired
	private SPageParamTradeDao sPageParamTradeDao;

	public List<SPageParamTrade> queryByPageId(String PAGE_ID)
			throws SQLException {
		return sPageParamTradeDao.queryByPageId(PAGE_ID);
	}

	public SPageParamTrade queryWithKeys(String recordKey) throws SQLException {
		return sPageParamTradeDao.queryWithKeys(recordKey);
	}

	public int insert(SPageParamTrade sPageParamTrade) throws SQLException,
			ClassNotFoundException {
		return sPageParamTradeDao.insert(sPageParamTrade);
	}

	public int delete(String tradeid) throws SQLException,
			ClassNotFoundException {
		return sPageParamTradeDao.delete(tradeid);
	}

	public int update(SPageParamTrade sPageParamTrade) throws SQLException,
			ClassNotFoundException {
		return sPageParamTradeDao.update(sPageParamTrade);
	}

}
